#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>

int main()
{
  printf("before: only one line\n");
  fork();
  printf("after only one line\n");
  sleep(1);
  while(1)
  {
    printf("I am a process,my id is:%d,parent:%d\n",getpid(),getppid());
    sleep(1);
  }

  return 0;
}
